package com.basiclib.network

import android.content.Context

class ErrorHandlerFactory(var mContext: Context?, var mResponseErrorListener: ResponseErrorListener?) {
    val TAG = this.javaClass.simpleName

    /**
     * 处理错误
     * @param throwable
     */
    fun handleError(throwable: Throwable) {
        mResponseErrorListener?.handleResponseError(mContext, throwable)
    }
}